<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>解构</title>
    <script>
        let arr = [1, 22, 43, 14, 5];
        //表示从arr数组中解构（取值）可以一个也可以多个
        //...表示可变参数，other永远表示数组剩下的值
        let [a, ...other] = arr;
        console.log(a);
        console.log(other);
    </script>
</head>
<body>

</body>
</html>